#!/usr/bin/python

import re
import datetime
import cgi
import logging
import parser
from google.appengine.api import users

row = '''  <tr class="tr%d">
    <td>
        <input type="checkbox" name="sel" value="%d">
    </td>
    <td>
        <a href="/view?id=%s">%d<a>
   </td>
    <td>%s</td>
    <td>%s</td>
    <td>%s</td>
    <td>%s</td>
    <td>%s</td>
    <td>%s</td>
  </tr>\n'''
 
def time2str(t):
    if t is None:
        return ''
    return datetime.datetime.strftime(t, '%m/%d/%Y %H:%M:%S')

